package Demo3;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86136
 * Date: 2024-05-26
 * Time: 15:53
 */
public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.openComputer();
        computer.useDevice(new Mouse());
        System.out.println("----------");
        computer.useDevice(new KeyBoard());
        computer.closeComputer();
    }
}
